luci-base: only render theme specific sysauth template when it exists
authorJo-Philipp Wich <[email protected]>
Fri, 25 Nov 2022 14:30:20 +0000 (15:30 +0100)
committerJo-Philipp Wich <[email protected]>
Fri, 25 Nov 2022 14:30:20 +0000 (15:30 +0100)
commitbed67dc0006d8869748a738a9f1a2f17e2b3d038
tree0b4ae1cdea38f9fdd971091805c0a94e9c0dc317
parent885e3a5f0b3323f007cb265be210e9efe939530b
luci-base: only render theme specific sysauth template when it exists

Avoid displaying non-fatal "File not found" exceptions when a theme is not
shipping an own sysauth template.

Fixes: #6118
Signed-off-by: Jo-Philipp Wich <[email protected]>
modules/luci-base/ucode/dispatcher.uc
modules/luci-base/ucode/runtime.uc